<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    	               "http://www.w3.org/TR/html4/loose.dtd">
    	               
<%@ page import="java.util.*" %>
<%@ page import="jpa.*" %>
<html>
	<head>
		<link href="Standard.css" rel="stylesheet" type="text/css">
	  	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	  	<title>View All Cache</title>
	</head>
	<body>
		<%@include file="header.jsp" %>
<%
List<Cache> caches = null;
caches = stateless.getAllCaches();
%>
		<div id="container">
			<div id="viewCache">
				<ul>
				<%
				if (caches != null)
				{
					for (Cache c : caches)
					{
						if(c.getCacheApproved() == 1)
						{
				%>
					<li><a href="cachePage.jsp?id=<%=c.getCacheId()%>"> <%=c.getCacheName() %></a></li>	
					
				<%
						}
					}
				}
				%>
				</ul>
			</div>
		</div>
		<div id="footer"></div>
	</body>
</html> 
